﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="AssignReviewTeamScreen.aspx.cs" Inherits="METU_CMT.AssignReviewTeamScreen" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Table ID="Table1" runat="server" Width="100%" HorizontalAlign="Center" CssClass="chp-grid" style="font-size: 15px; margin-top:50px;">
        <asp:TableRow ID="TableRow1" runat="server">
            <asp:TableCell ID="TableCell4" runat="server">
                <asp:Table ID="Table2" runat="server" Width="100%" HorizontalAlign="Center">
                    <asp:TableRow ID="TableRow2" runat="server">
                        <asp:TableCell ID="TableCell1" runat="server" Width="150">Submission Name</asp:TableCell>
                        <asp:TableCell ID="TableCell3" runat="server" HorizontalAlign="Left">
                            <asp:DropDownList runat="server" ID="ddlSubmissionTypes" DataTextField="Description"
                                DataValueField="EventId" CssClass="chp-select" />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow ID="TableRow3" runat="server">
                        <asp:TableCell ID="TableCell5" runat="server" Width="150">Team</asp:TableCell>
                        <asp:TableCell ID="TableCell6" runat="server" HorizontalAlign="Left">
                            <asp:ListBox runat="server" ID="lstTeam" DataTextField="TeamName" DataValueField="TeamId"
                                 CssClass="chp-text-area"/>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow ID="TableRow4" runat="server">
                        <asp:TableCell ID="TableCell7" runat="server" Width="150">Review Team</asp:TableCell>
                        <asp:TableCell ID="TableCell8" runat="server" HorizontalAlign="Left">
                            <asp:ListBox runat="server" ID="lstReview" DataTextField="TeamName" DataValueField="TeamId"
                                CssClass="chp-text-area" />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow ID="TableRow5" runat="server">
                        <asp:TableCell ID="TableCell10" runat="server" HorizontalAlign="Left" ColumnSpan="2">
                            <asp:Button runat="server" ID="btnAssign" OnClick="OnBtnAssignClicked" Text="Assign" CssClass="chp-button-red"/>
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </asp:TableCell>
            <asp:TableCell ID="TableCell2" runat="server" HorizontalAlign="Left">
                <asp:GridView runat="server" ID="dtgTeamAssignment" OnRowCommand="OnDtgTeamAssignmentRowCommand"
                    AutoGenerateColumns="false" ShowHeaderWhenEmpty="false" CssClass="chp-grid">
                    <Columns>
                        <asp:BoundField HeaderText="Submission Name" DataField="Description" />
                        <asp:BoundField HeaderText="Team Name" DataField="ReviewedTeamName" />
                        <asp:BoundField HeaderText="Reviewer" DataField="ReviewerTeamName" />
                        <asp:TemplateField HeaderText="Action">
                            <ItemTemplate>
                                <asp:LinkButton runat="server" ID="lnkBtnDelete" CommandName="DeleteAssignment" Text="Delete Assignment"
                                    CommandArgument='<%# Bind( "ReviewTeamId" ) %>'>
                                </asp:LinkButton>
                                <asp:HiddenField Value='<%# Bind( "ReviewTeamId" ) %>' ID="hfId" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>
</asp:Content>
